{extend name="default/base/base_seller" /}
{block name="seller_btn"}
  <a href="javascript:void(0)" class="dssc-btn dssc-btn-green" ds_type="dialog" dialog_title="{$Think.lang.store_goods_brand_apply}" dialog_id="my_goods_brand_apply" dialog_width="480" uri="{:url('Sellerbrand/brand_add')}">{$Think.lang.store_goods_brand_apply}</a>            
 {/block}
{block name="seller_main"}
 
<table class="search-form">
            <form method="get">
                <tr>
                    <td>&nbsp;</td>
                    <th>{$Think.lang.store_goods_brand_name}</th>
                    <td class="w160"><input type="text" class="text" name="brand_name" value="{$Request.param.brand_name}"/></td>
                    <td class="w70 tc">
                        <input type="submit" class="submit" value="{$Think.lang.ds_search}" />
                    </td>
                </tr>
            </form>
        </table>
        <table class="dssc-default-table">
            <thead>
            <tr>
                <th class="w150">{$Think.lang.store_goods_brand_icon}</th>
                <th>{$Think.lang.store_goods_brand_name}</th>
                <th>{$Think.lang.store_goods_brand_belong_class}</th>
                <th class="w100">{$Think.lang.ds_handle}</th>
            </tr>
            </thead>
            <tbody>
            {notempty name="brand_list"}
            {foreach name="brand_list" item="val"}
            <tr class="bd-line">
                <td><img src="{:brand_image($val.brand_pic)}" onload="javascript:ResizeImage(this,88,44);" /></td>
                <td>{$val.brand_name}</td>
                <td>{$val.brand_class}</td>
                <td class="dscs-table-handle">
                    {if $val.brand_apply == 0}
                    <span><a href="javascript:void(0)" class="btn-blue" ds_type="dialog" dialog_title="{$Think.lang.store_goods_brand_edit}" dialog_id="my_goods_brand_edit" dialog_width="480" uri="{:url('Sellerbrand/brand_add',['brand_id'=>$val.brand_id])}"><i class="iconfont">&#xe731;</i><p>{$Think.lang.ds_edit}</p></a></span>
                    <span><a href="javascript:void(0)" class="btn-red" onclick="ds_ajaxget_confirm('{:url('Sellerbrand/drop_brand',['brand_id'=>$val.brand_id])}','{$Think.lang.ds_ensure_del}');"><i class="iconfont">&#xe725;</i><p>{$Think.lang.ds_del}</p></a></span>{/if}</td>
            </tr>
           {/foreach}
           {else /}
            <tr>
                <td colspan="4" class="norecord"><div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.no_record}</span></div></td>
            </tr>
            {/notempty}
            </tbody>
            <tfoot>
            {notempty name="brand_list"}
            <tr>
                <td colspan="4"><div class="pagination">{$show_page|raw}</div></td>
            </tr>
            {/notempty}
            </tfoot>
        </table>

{/block}


